// 地图全亮插件
// 这个插件只有单机能用

string author = "Live";
string pluginName = "Fullbright 地图全亮插件";
string version = "1.0";

void OnPluginInit()
{
    // 设置插件信息
    PluginData::SetAuthor(author);
    PluginData::SetName(pluginName);
    PluginData::SetVersion(version);
    // 提示
	ThePresident.InfoFeed("插件:"+pluginName+"| 版本:"+version+"| 作者:"+author,false);

	ThePresident_OnMapStart();
}

void ThePresident_OnMapStart()
{
	ThePresident_OnRoundStart();
}

void ThePresident_OnRoundStart()
{
	fullbright();
}

void fullbright()
{
	CASConVarRef@ fullbright = ConVar::Find( "mat_fullbright" );
	fullbright.SetValue( "1" );
    Chat.PrintToChat(all,"{hotpink}已开启地图全亮");
}